package com.hxxzt.hikari.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hxxzt.hikari.common.exception.NikoException;
import com.hxxzt.hikari.entity.User;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jobob
 * @since 2020-01-13
 */
public interface IUserService extends IService<User> {

    List<User> queryAll();

    User queryById(Integer id);

    List<User> queryByUser(User user);

    IPage<User> queryPage(Integer page, Integer limit);

    void deleteById(Integer id);

    void insert(User user);

    JSONObject findSon() throws NikoException;

    JSONObject findSonByUserId(Integer userId) throws NikoException;
}
